#include<stdio.h>
int main()
{
  int row = 1;
  char line[100];
  FILE *pfreadA = fopen("E:\\C\\vscode-C\\FJUTc\\A.txt","r");
  FILE *pfreadB = fopen("E:\\C\\vscode-C\\FJUTc\\B.txt","r");
  FILE *pfwrite = fopen("C.txt","a+");
  while(fgets(line,100,pfreadA))
  {
    // printf("%s",line);
    fprintf(pfwrite,"[%d]%s",row++,line);
  }
  fprintf(pfwrite,"\n");
  while(fgets(line,100,pfreadB))
  {
    fprintf(pfwrite,"[%d]%s",row++,line);
  }
  fclose(pfreadA);
  fclose(pfreadB);
  fclose(pfwrite);
  pfreadA = NULL;
  pfreadB = NULL;
  pfwrite = NULL;
  return 0;
}